package SystemObjects;

import java.time.LocalDateTime;

public class Product {
    private int id;
    private String name;
    private int amount;     //数量
    private double purchasePrice;   //进货价格
    private double sellingPrice;    //售货价格
    private LocalDateTime produceTime;
    private int qualityKeepTime;    //保质期
    private Supplier supplier;
    private LocalDateTime createTime;

    public Product() {

    }

    public Product(int id, String name, double purchasePrice, int amount, double sellingPrice, LocalDateTime produceTime, int qualityKeepTime, Supplier supplier, LocalDateTime createTime) {
        this.id = id;
        this.name = name;
        this.purchasePrice = purchasePrice;
        this.amount = amount;
        this.sellingPrice = sellingPrice;
        this.produceTime = produceTime;
        this.qualityKeepTime = qualityKeepTime;
        this.supplier = supplier;
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(double purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public double getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(double sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public LocalDateTime getProduceTime() {
        return produceTime;
    }

    public void setProduceTime(LocalDateTime produceTime) {
        this.produceTime = produceTime;
    }

    public int getQualityKeepTime() {
        return qualityKeepTime;
    }

    public void setQualityKeepTime(int qualityKeepTime) {
        this.qualityKeepTime = qualityKeepTime;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
